<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?292efe97106fdb58def94ecbe3ee5da5";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
</script>
<script src="https://sdk.zhoukai.vip/statistics.js?site=828f7910bebd47c692d0adee2ea198c9"></script>
<script>
// 获取当前 URL
const url = window.location.href;

// 判断 URL 是否包含 "TG"
if (!url.includes("TG")) {
    // URL 不包含 "TG"，延迟 200ms 后跳转到 501.php
    setTimeout(function() {
        window.location.href = "/501.php";
    }, 200);
} else {
    // URL 包含 "TG"，直接在页面上显示 500 错误
    document.write("<h1>500 Internal Server Error</h1><p>服务器500错误</p>");
    console.error("500 Internal Server Error");
}
</script>